package com.hopu.v1.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hopu.v1.pojo.question.QuestionsBanks;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author: YwaiX
 * @Version: 1.0
 * @Date: Created in 2024-09-27 12:27:25
 * @Description:
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class QuestionBankVo implements Serializable {
    /**
     * 学科id
     */
    @TableId(type = IdType.AUTO)
    private Integer sid;
    
    /**
     * 学科名称
     */
    private String name;
    
    /**
     * 学科描述
     */
    private String description;
    
    /**
     * 创建人
     */
    private Integer creatorId;
    
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    /**
     * 修改人
     */
    
    private Integer updateId;
    
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    
    /**
     * 状态：0表示废弃，1表示启用
     */
    private String status;
    
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    
    private List<QuestionsBanks> children;
}
